2. CSS Selectors

1. Element Selector (Tag Selector)

Explanation: Ye specific tag (jaise h1, p) ko target karta hai aur unke upar style lagata hai.

2. Class Selector (.)

Explanation: Kisi bhi element me class attribute ke through styling lagayi ja sakti hai. Class ke liye . use hota hai.

3. ID Selector (#)

Explanation: ID selector kisi specific element ko style karta hai jiska unique ID hota hai. Use karte hain #.

4. Universal Selector (*)

Explanation: Sabhi elements ko ek sath target karne ke liye * use hota hai.

5. Group Selector

Explanation: Ek sath multiple selectors ko group me style karne ke liye comma use karte hain.

6. Attribute Selector

Explanation: Jo elements kisi specific attribute (jaise type, href) ko hold karte hain unhe target karta hai.

7. Pseudo-classes & Pseudo-elements

Explanation: Ye special states ya parts of elements ko style karne ke liye hote hain. Jaise hover, first-line etc.